package com.cjq.auth.remote;

import com.cjq.common.domain.User;
import com.cjq.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "cjq-user")
public interface UserRemoteService {
    /**
     * 手机号查询用户
     * @param phone
     * @return
     */
    @PostMapping("/user/findUser/{phone}")
    public Result<User> findUser(@PathVariable String phone);
}
